package schoolsource.gui;


public class Column {
    private Header header;
    private int width;
    private String widthType = "px";
//    private Vector contents = new Vector();
    private Content content = null;

    public Column(Header newHeader, int newWidth) {
        header = newHeader;
        width = newWidth;
    }

    public void setWidthType(String newWidthType) {
        widthType = newWidthType;
    }

    public Header getHeader() {
        return header;
    }

    public int getWidth() {
        return width;
    }

    public String getWidthType() {
        return widthType;
    }

    public void setContent(Content newContent) {
        content = newContent;
    }

    public String getRow(int index, int width) {
        return content.getRow(index, width);
    }

    public String getText(int index) {
        return content.getText(index);
    }

    public int getNumberOfRows() {
        return content.size();
    }

    public boolean useDiv() {
        return content.useDiv();
    }
}